import request from '@/utils/request'

// 获取分类列表的请求
export const getCategoryAPI = () => request.get('/my/cate/list')

// 添加分类的请求
export const addCategoryAPI = data => request.post('/my/cate/add', data)

// 删除分类的请求
export const deleteCategoryAPI = data => request.delete('/my/cate/del', { params: { id: data } })

// 修改文章分类数据请求
export const updateCategoryAPI = data => request.put('/my/cate/info', data)
